package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.LeaveMessage;
import com.weixing.mall.provider.model.query.LeaveMessageQuery;
import com.weixing.mall.provider.model.vo.LeaveMessagePersonVo;
import com.weixing.mall.provider.model.vo.LeaveMessageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 会员模块-留言表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-13
 */
public interface LeaveMessageMapper extends BaseMapper<LeaveMessage> {

    IPage<LeaveMessagePersonVo> selectByMemberId(@Param("pg")Page page,@Param("memberId")Long memberId);

    List<LeaveMessagePersonVo> selectByMemberIdList(long memberId);

    IPage<LeaveMessageVo> selectVoList(@Param("pg") Page page, @Param("qs") LeaveMessageQuery leaveMessageQuery);

    LeaveMessageVo selectDetail(long id);
}
